package com.tjh.springbootapi.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by koala on 2020-01-02
 */
@RestController
@RequestMapping("/rules")
public class RulesController {

    /**
     * element ui form rules API验证
     *
     * @param userName
     * @return
     */
    @GetMapping("/validateUserNameApi")
    public boolean validateUserNameApi(@RequestParam(name = "userName") String userName) {
        return true;
    }

}
